﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class ThongTinLienHeNguoiDung : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        int maNguoiDung = -1;

        if (Request.QueryString["id"] != null)
        {
            maNguoiDung = int.Parse(Request.QueryString["id"]);
        }
        else
        {
            return;
        }

        
        GridView1.Visible = true;
        LinQ_RaoVatDataContext danhsach = new LinQ_RaoVatDataContext();

        var query = from NGUOI_DUNG in danhsach.NGUOI_DUNGs
                    where NGUOI_DUNG.MaNguoiDung == maNguoiDung
                    select NGUOI_DUNG;

        GridView1.DataSource = query;
        GridView1.DataBind();
    }
  
}
